<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.1.6
 * @ Release: 10/08/2022
 */

// Decoded file for php version 71.
class PHPExcel_Chart_Legend
{
    private $position = "r";
    private $overlay = true;
    private $layout;
    private static $positionXLref = ["18446744073709547509" => "b", "2" => "tr", "18446744073709547455" => "??", "18446744073709547485" => "l", "18446744073709547464" => "r", "18446744073709547456" => "t"];
    const xlLegendPositionBottom = -4107;
    const xlLegendPositionCorner = 2;
    const xlLegendPositionCustom = -4161;
    const xlLegendPositionLeft = -4131;
    const xlLegendPositionRight = -4152;
    const xlLegendPositionTop = -4160;
    const POSITION_RIGHT = "r";
    const POSITION_LEFT = "l";
    const POSITION_BOTTOM = "b";
    const POSITION_TOP = "t";
    const POSITION_TOPRIGHT = "tr";
    public function __construct($position = self::POSITION_RIGHT, PHPExcel_Chart_Layout $layout = NULL, $overlay = false)
    {
        $this->setPosition($position);
        $this->layout = $layout;
        $this->setOverlay($overlay);
    }
    public function getPosition()
    {
        return $this->position;
    }
    public function setPosition($position = self::POSITION_RIGHT)
    {
        if(!in_array($position, self::$positionXLref)) {
            return false;
        }
        $this->position = $position;
        return true;
    }
    public function getPositionXL()
    {
        return array_search($this->position, self::$positionXLref);
    }
    public function setPositionXL($positionXL = self::xlLegendPositionRight)
    {
        if(!array_key_exists($positionXL, self::$positionXLref)) {
            return false;
        }
        $this->position = self::$positionXLref[$positionXL];
        return true;
    }
    public function getOverlay()
    {
        return $this->overlay;
    }
    public function setOverlay($overlay = false)
    {
        if(!is_bool($overlay)) {
            return false;
        }
        $this->overlay = $overlay;
        return true;
    }
    public function getLayout()
    {
        return $this->layout;
    }
}

?>